import java.util.Scanner;
public class if2 {
    // HelloWorld--Pc2
    public static void main(String[] args) {
        System.out.println("请输入您的出生月份范围1~12");
        Scanner birthday = new Scanner(System.in);
        int Brithday = birthday.nextInt();
        int end = 0;
        if (Brithday == 1) {
            end = 1;
        }
        if (end == 1){
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:1月");
        }
        if (Brithday == 2){
            end = 2;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:2月");
        }

        if (Brithday == 3){
            end = 3;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:3月");
        }

        if (Brithday == 4){
            end = 4;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:4月");
        }
        if (Brithday == 5){
            end = 5;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:5月");
        }
        if (Brithday == 6){
            end = 6;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:6月");
        }
        if (Brithday == 7) {
            end = 7;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:7月");
        }
        if (Brithday == 8){
            end = 8;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:8月");
        }
        if (Brithday == 9){
            end = 9;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:9月");
        }
        if (Brithday == 10){
            end = 10;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月分为:10月");
        }
        if (Brithday == 11){
            end = 11;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:11月");
        }
        if (Brithday == 12){
            end = 12;
            System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:12月");
        }
        if (Brithday > 12){
            System.out.println("月份只有12个月哦，请在1~12之间取值！");
            System.out.println("请重新输入您的月份：取值范围1~12");
                Scanner brithday2 = new Scanner(System.in);
                int Brithday2 = brithday2.nextInt();
            if (Brithday2 == 1) {
                end = 1;
            }
            if (end == 1){
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:1月");
            }
            if (Brithday2 == 2){
                end = 2;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:2月");
            }

            if (Brithday2 == 3){
                end = 3;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:3月");
            }

            if (Brithday2 == 4){
                end = 4;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:4月");
            }
            if (Brithday2 == 5){
                end = 5;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:5月");
            }
            if (Brithday2 == 6){
                end = 6;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:6月");
            }
            if (Brithday2 == 7) {
                end = 7;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:7月");
            }
            if (Brithday2 == 8){
                end = 8;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:8月");
            }
            if (Brithday2 == 9){
                end = 9;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:9月");
            }
            if (Brithday2 == 10){
                end = 10;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月分为:10月");
            }
            if (Brithday2 == 11){
                end = 11;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:11月");
            }
            if (Brithday2 == 12){
                end = 12;
                System.out.println("恭喜你设置成功");
                System.out.println("您的生日月份为:12月");
            }



        }
        System.out.println("请输入您的月份日期，取值范围“1~31");
        Scanner date = new Scanner(System.in);
        int Date = date.nextInt();
        System.out.println("恭喜你设置成功");
        System.out.println("您的日期为:"+ end + "月" + Date + "日");



            System.out.println("结束");
        }







    }
